// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.sys.rd2.annotation.RoleData2;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * Warehouse
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "warehouse", autoResultMap = true)
@Schema(title = "仓库")
@RoleData2
public class Warehouse implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 仓库名称
   */
  @TableField(value = "`name`")
  @Schema(title = "仓库名称")
  private String name;

  /**
   * 属性
   */
  @TableField(value = "`wid_type`")
  @Schema(title = "属性")
  private String widType;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 负责人
   */
  @TableField(value = "`contact`")
  @Schema(title = "负责人")
  private String contact;

  /**
   * 联系电话
   */
  @TableField(value = "`telephone`")
  @Schema(title = "联系电话")
  private String telephone;

  /**
   * 仓库地址
   */
  @TableField(value = "`address`")
  @Schema(title = "仓库地址")
  private String address;

  /**
   * 备注
   */
  @TableField(value = "`remark`")
  @Schema(title = "备注")
  private String remark;

  /**
   * 待检待上架量
   */
  @TableField(value = "`quantity_test`")
  @Schema(title = "待检待上架量")
  private Integer quantityTest;

  /**
   * 待到货量
   */
  @TableField(value = "`quantity_aog`")
  @Schema(title = "待到货量")
  private Integer quantityAog;

  /**
   * 预计总量
   */
  @TableField(value = "`estimated_total`")
  @Schema(title = "预计总量")
  private Integer estimatedTotal;

  /**
   * 总量
   */
  @TableField(value = "`gross`")
  @Schema(title = "总量")
  private Integer gross;

  /**
   * 费用
   */
  @TableField(value = "`cost`")
  @Schema(title = "费用")
  private Integer cost;

  /**
   * 头程
   */
  @TableField(value = "`the_first_vessel`")
  @Schema(title = "头程")
  private Integer theFirstVessel;

  /**
   * 库存成本
   */
  @TableField(value = "`stock_holding_cost`")
  @Schema(title = "库存成本")
  private Integer stockHoldingCost;

  /**
   * 总计
   */
  @TableField(value = "`total`")
  @Schema(title = "总计")
  private Integer total;

  /**
   * 仓位
   */
  @TableField(value = "`pos_id`")
  @Schema(title = "仓位")
  private Long posId;

  /**
   * 仓库属性(删除字段) (1 - 本地仓; 2 - 海外仓; 3 - FBA; )
   */
  @TableField(value = "`type`")
  @Schema(title = "仓库属性(删除字段)")
  private String type;

  /**
   * 仓库类型(删除字段)
   */
  @TableField(value = "`is_own`")
  @Schema(title = "仓库类型(删除字段)")
  private String isOwn;

  /**
   * 仓库类型名称
   */
  @TableField(value = "`is_own_name`")
  @Schema(title = "仓库类型名称")
  private String isOwnName;

  /**
   * 供应商
   */
  @TableField(value = "`supplier_id`")
  @JoinField(Supplier.class)
  @Schema(title = "供应商")
  private Long supplierId;

  /**
   * 仓库编码
   */
  @TableField(value = "`wid`")
  @Schema(title = "仓库编码")
  private String wid;

  /**
   * 店铺
   */
  @TableField(value = "`sid`")
  @Schema(title = "店铺")
  private Long sid;
}
